package com.monitor.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

@TableName("jfz_newest")
public class JfzRealTime  extends Model<JfzRealTime> {
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private int id;
	private int carId;
	private String tirePosition;
	@TableField("recieve_time")
	private String recieveTime;
	private Double carSpeed;
	private Double voltage;
	private Double temperature;
	private Double tirePressure;
	private int state;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getCarId() {
		return carId;
	}
	public void setCarId(int carId) {
		this.carId = carId;
	}
	public String getTirePosition() {
		return tirePosition;
	}
	public void setTirePosition(String tirePosition) {
		this.tirePosition = tirePosition;
	}
	public String getRecieveTime() {
		return recieveTime;
	}
	public void setRecieveTime(String recieveTime) {
		this.recieveTime = recieveTime;
	}
	public Double getCarSpeed() {
		return carSpeed;
	}
	public void setCarSpeed(Double carSpeed) {
		this.carSpeed = carSpeed;
	}
	public Double getVoltage() {
		return voltage;
	}
	public void setVoltage(Double voltage) {
		this.voltage = voltage;
	}
	public Double getTemperature() {
		return temperature;
	}
	public void setTemperature(Double temperature) {
		this.temperature = temperature;
	}
	public Double getTirePressure() {
		return tirePressure;
	}
	public void setTirePressure(Double tirePressure) {
		this.tirePressure = tirePressure;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public JfzRealTime() {
		super();
		// TODO Auto-generated constructor stub
	}

	@Override
	protected Serializable pkVal() {
		return this.id=id;
	}

	public JfzRealTime(int id, int carId, String tirePosition, String recieveTime, Double carSpeed, Double voltage,
			Double temperature, Double tirePressure, int state) {
		super();
		this.id = id;
		this.carId = carId;
		this.tirePosition = tirePosition;
		this.recieveTime = recieveTime;
		this.carSpeed = carSpeed;
		this.voltage = voltage;
		this.temperature = temperature;
		this.tirePressure = tirePressure;
		this.state = state;
	}
	
	

}
